package com.yjk1.example.myFirstSofawebBoot;

import com.yjk1.example.myFirstSofawebBoot.dao.mybatis.entity.UserShowInfo;
import com.yjk1.example.myFirstSofawebBoot.dao.service.IUserShowInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author yujiakui
 * @version 1.0
 * Email: jkyu@haiyi-info.com
 * date: 2018/11/12 下午9:22
 * description：
 **/
@Controller
public class DaoController {

    @Autowired
    private IUserShowInfoService iUserShowInfoService;

    @GetMapping("/showUser")
    public String showUser(){
        UserShowInfo userShowInfo = iUserShowInfoService.selectById("1");
        System.out.println(userShowInfo);
        return "xxxx";
    }

    @GetMapping("/targetId")
    public String targetId(){
        UserShowInfo userShowInfo = iUserShowInfoService.selectByTargetIdAndFlag("2018100900001","1");
        System.out.println(userShowInfo);
        return "xxxx";
    }
}
